import React from 'react';
import { Form, Button, Row, Col, Input } from "antd";

/**
 * @description: 费用反馈 -- 反馈列表 -- 搜索组件
 * @author: xiaoxujs
 * @updata: xiaoxujs（2021-09-15） 创建页面
 */

const SelectModule = ({ handleSelectModuleOk, handleSelectModuleReset }) => {
    const [form] = Form.useForm()
    const { resetFields } = form;
    const handleReset = () => {
        resetFields()
        handleSelectModuleReset()
    }
    const onFinish = (values) => {
        handleSelectModuleOk(values)
    };
    return <Form
        {...layout}
        name="basic"
        initialValues={{ remember: true }}
        onFinish={onFinish}
        form={form}
    >
        <Row>
            <Col span={6}>
                <Form.Item name="wxName" label="报餐人员" hasFeedback>
                    <Input />
                </Form.Item>
            </Col>
            <Col span={6}>
                <Form.Item name="wxMobile" label="手机号码" hasFeedback>
                    <Input />
                </Form.Item>
            </Col>
        </Row>
        <Row>
            <Col span={24} className="bottom_button_box">
                <Form.Item wrapperCol={{ offset: 0, span: 24 }}>
                    <Button type="primary" htmlType="submit">
                        搜索
                    </Button>
                    <Button onClick={handleReset}>重置</Button>
                </Form.Item>
            </Col>
        </Row>
    </Form>
}
const layout = {
    labelCol: { span: 8 },
    wrapperCol: { span: 14 },
};
export default SelectModule